package com.jckj.core.entity;

import java.io.Serializable;
import java.util.Date;

public class InspectionItem implements Serializable {
    private String id;

    private String inspecId;

    private String inspecItemName;

    private String inspecItemDesc;

    private String remark;

    private String createBy;

    private Date createTime;

    private String upateBy;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getInspecId() {
        return inspecId;
    }

    public void setInspecId(String inspecId) {
        this.inspecId = inspecId == null ? null : inspecId.trim();
    }

    public String getInspecItemName() {
        return inspecItemName;
    }

    public void setInspecItemName(String inspecItemName) {
        this.inspecItemName = inspecItemName == null ? null : inspecItemName.trim();
    }

    public String getInspecItemDesc() {
        return inspecItemDesc;
    }

    public void setInspecItemDesc(String inspecItemDesc) {
        this.inspecItemDesc = inspecItemDesc == null ? null : inspecItemDesc.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpateBy() {
        return upateBy;
    }

    public void setUpateBy(String upateBy) {
        this.upateBy = upateBy == null ? null : upateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InspectionItem other = (InspectionItem) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getInspecId() == null ? other.getInspecId() == null : this.getInspecId().equals(other.getInspecId()))
            && (this.getInspecItemName() == null ? other.getInspecItemName() == null : this.getInspecItemName().equals(other.getInspecItemName()))
            && (this.getInspecItemDesc() == null ? other.getInspecItemDesc() == null : this.getInspecItemDesc().equals(other.getInspecItemDesc()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpateBy() == null ? other.getUpateBy() == null : this.getUpateBy().equals(other.getUpateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getInspecId() == null) ? 0 : getInspecId().hashCode());
        result = prime * result + ((getInspecItemName() == null) ? 0 : getInspecItemName().hashCode());
        result = prime * result + ((getInspecItemDesc() == null) ? 0 : getInspecItemDesc().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpateBy() == null) ? 0 : getUpateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", inspecId=").append(inspecId);
        sb.append(", inspecItemName=").append(inspecItemName);
        sb.append(", inspecItemDesc=").append(inspecItemDesc);
        sb.append(", remark=").append(remark);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", upateBy=").append(upateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}